
bool is_little_endian() {
    int x = 1;
    char *c = (char*)&x;
    return (int)*c;
}